import { Alert } from "solid-fire-controls";
import { Component } from "solid-js";

export interface AlertErrorProps {
  error?: Error;
}

const AlertError: Component<AlertErrorProps> = (props) => {
  return <Alert variant={"danger"}>{props.error?.message}</Alert>;
};

export default AlertError
